define({ "api": [
  {
    "type": "post",
    "url": "/orders/exitRoom/secure",
    "title": "退房",
    "name": "exitRoom",
    "group": "Orders",
    "version": "0.1.0",
    "description": "<p>退房</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/OrdersController.java",
    "groupTitle": "Orders",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/orders/exitRoom/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/orders/openRoom/secure",
    "title": "开房",
    "name": "openRoom",
    "group": "Orders",
    "version": "0.1.0",
    "description": "<p>开房</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>姓名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "idcard",
            "description": "<p>身份证号码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/OrdersController.java",
    "groupTitle": "Orders",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/orders/openRoom/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/room/addRoom/secure",
    "title": "添加房间",
    "name": "addRoom",
    "group": "Room",
    "version": "0.1.0",
    "description": "<p>添加房间</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "level",
            "description": "<p>级别</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>类型</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "price",
            "description": "<p>价格</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "status",
            "description": "<p>状态</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/RoomController.java",
    "groupTitle": "Room",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/room/addRoom/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/room/deleteRoom/secure",
    "title": "删除房间",
    "name": "deleteRoom",
    "group": "Room",
    "version": "0.1.0",
    "description": "<p>删除房间</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/RoomController.java",
    "groupTitle": "Room",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/room/deleteRoom/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/room/getRoom/secure",
    "title": "获取房间信息",
    "name": "getRoom",
    "group": "Room",
    "version": "0.1.0",
    "description": "<p>获取房间信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\n     \"room\":\t{\n              \t\"id\":201,\n              \t\"level\":\"豪华\",\n              \t\"type\":\"标间\",\n              \t\"price\":50,\n              \t\"status\":0\n              }\n\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"room\": null\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/RoomController.java",
    "groupTitle": "Room",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/room/getRoom/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/room/getRoomDetail/secure",
    "title": "获取房间详情",
    "name": "getRoomDetail",
    "group": "Room",
    "version": "0.1.0",
    "description": "<p>获取房间详情</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\n     \"detail\":{\n              \t\"id\":201,\n              \t\"level\":\"豪华\",\n              \t\"type\":\"标间\",\n              \t\"price\":50,\n              \t\"status\":0,\n              \t\"orders\":[\n              \t\t\t  \t\"id\":1,\n              \t\t\t\t\"roomid\":201,\n              \t\t\t\t\"name\":\"张三\",\n              \t\t\t\t\"idcard\":\"500212542112541\",\n              \t\t\t\t\"starttime\":\"2018-10-12 10:00:00\",\n              \t\t\t\t\"endtime\":\"2018-10-13 10:00:00\"\n              \t\t\t ]\n              }\n\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"detail\":null\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/RoomController.java",
    "groupTitle": "Room",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/room/getRoomDetail/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/room/getRoomsByStatus/secure",
    "title": "通过状态获取房间信息列表",
    "name": "getRoomsByStatus",
    "group": "Room",
    "version": "0.1.0",
    "description": "<p>通过状态获取房间信息列表</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "status",
            "description": "<p>房间状态（选填，如果不填获取全部信息）</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\n     \"list\":[\n            \t{\n              \t\"id\":201,\n              \t\"level\":\"豪华\",\n              \t\"type\":\"标间\",\n              \t\"price\":50,\n              \t\"status\":0\n              }\n            ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"list\":null\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/RoomController.java",
    "groupTitle": "Room",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/room/getRoomsByStatus/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/room/updateRoom/secure",
    "title": "更新房间",
    "name": "updateRoom",
    "group": "Room",
    "version": "0.1.0",
    "description": "<p>更新房间</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "level",
            "description": "<p>级别</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>类型</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "price",
            "description": "<p>价格</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "status",
            "description": "<p>状态</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/RoomController.java",
    "groupTitle": "Room",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/room/updateRoom/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/user/getUsername/secure",
    "title": "获取当前用户名",
    "name": "getusername",
    "group": "User",
    "version": "0.1.0",
    "description": "<p>获取当前用户名</p>",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"username\":\"yg0001\"\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"username\":null\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/UserController.java",
    "groupTitle": "User",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/user/getUsername/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/user/updatePassword/secure",
    "title": "修改密码",
    "name": "updatePassword",
    "group": "User",
    "version": "0.1.0",
    "description": "<p>修改密码</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "oldPassword",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "newPassword",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "boolean",
            "optional": false,
            "field": "res",
            "description": "<p>是否成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/UserController.java",
    "groupTitle": "User",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/user/updatePassword/secure"
      }
    ]
  },
  {
    "type": "post",
    "url": "/user/login",
    "title": "登陆",
    "name": "userLogin",
    "group": "User",
    "version": "0.1.0",
    "description": "<p>登陆</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "boolean",
            "optional": false,
            "field": "res",
            "description": "<p>是否成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/UserController.java",
    "groupTitle": "User",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/user/login"
      }
    ]
  },
  {
    "type": "post",
    "url": "/user/logout/secure",
    "title": "注销",
    "name": "userLoginout",
    "group": "User",
    "version": "0.1.0",
    "description": "<p>注销</p>",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 200 OK\n{\n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/ssmeasy/jdgl/controller/UserController.java",
    "groupTitle": "User",
    "sampleRequest": [
      {
        "url": "http://localhost:8080/jdgl_war/user/logout/secure"
      }
    ]
  },
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p>"
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "src/main/webapp/api/main.js",
    "group": "_home_ruixiaozi_IdeaProjects_jdgl_src_main_webapp_api_main_js",
    "groupTitle": "_home_ruixiaozi_IdeaProjects_jdgl_src_main_webapp_api_main_js",
    "name": ""
  }
] });
